package bean;

import gov.nasa.worldwind.geom.LatLon;

public class RuteBean {
	private int urutan;
	private String namaRute;
	private float maxSpeedAllowed;
	private KoordinatBean koordinat;
	
	public String getNamaRute() {
		return namaRute;
	}
	public void setNamaRute(String namaRute) {
		this.namaRute = namaRute;
	}
	public int getUrutan() {
		return urutan;
	}
	public void setUrutan(int urutan) {
		this.urutan = urutan;
	}
	public KoordinatBean getKoordinat() {
		return koordinat;
	}
	public void setKoordinat(KoordinatBean koordinat) {
		this.koordinat = koordinat;
	}
	public float getMaxSpeedAllowed() {
		return maxSpeedAllowed;
	}
	public void setMaxSpeedAllowed(float maxSpeedAllowed) {
		this.maxSpeedAllowed = maxSpeedAllowed;
	}
	public LatLon getCoordinate(){
		return LatLon.fromDegrees(koordinat.getLatitude(), koordinat.getLongitude());
	}
}
